import type { NodeDefault } from '@/components/workflow/types'
import { ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/pages/workflow/constants'
import type { StartNodeType } from './types'

const nodeDefault: NodeDefault<StartNodeType> = {
  defaultValue: {
    variables: []
  },
  getAvailablePrevNodes() {
    return []
  },
  getAvailableNextNodes() {
    const nodes = ALL_COMPLETION_AVAILABLE_BLOCKS
    return nodes
  },
  checkValid() {
    return {
      isValid: true
    }
  }
}

export default nodeDefault
